package com.media.yuvplayer.utils;

/**
 *
 * @author liuhui
 * @date 2018/12/17
 */
public class YuvUtils {
    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("native-lib");
    }

    public byte[] I420ToRGB24(byte[] src,int width,int height){
        return nativeI420ToRGB24(src, width, height);
    }

    private static native byte[] nativeI420ToRGB24(byte[] src,int width,int height);

    public static native byte[] nativeCrop(byte[] src,int width,int height,int x,int y,int d_width,int d_height);


}
